package com.VolunteerPlatform.Dao;

import com.VolunteerPlatform.Entity.VolunteerSign;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface VolunteerSignDao {

    public List<VolunteerSign> getAllVolunteerSign(@Param("IDCardNumber") String IDCardNumber,@Param("Name") String Name,@Param("StartTime") String StartTime,@Param("EndTime") String EndTime,@Param("DateDay") String DateDay,@Param("isFullDay") int isFullDay,@Param("AdminID") String AdminID,@Param("Page") int Page,@Param("PageList") int PageList);

    public int insertVolunteerSign(@Param("IDCardNumber") String IDCardNumber,@Param("Name") String Name,@Param("StartTime") String StartTime,@Param("EndTime") String EndTime,@Param("DateDay") String DateDay,@Param("isFullDay") int isFullDay,@Param("AdminID") String AdminID);

    public int updateVolunteerSignBatch(@Param("UpdateList") List<Map<String,String>> list);

    public List<VolunteerSign> getCertainVolunteerSign(@Param("IDCardNumber") String IDCardNumber,@Param("Name") String Name,@Param("StartTime") String StartTime,@Param("EndTime") String EndTime,@Param("StartDay") String StartDay,@Param("EndDay") String EndDay,@Param("Unit") String Unit,@Param("Page") int Page,@Param("PageList") int PageList);


    public int updateVolunteerSign(@Param("IDCardNumber") String IDCardNumber,@Param("SignDate") String SighDate,@Param("StartTime") String StartTime,@Param("EndTime") String EndTime,@Param("isFullDay") int isFullDay,@Param("AdminID") String AdminID,@Param("OriginDate") String OriginDate);

    public int deleteVolunteerSign(@Param("IDCardNumber") String IDCardNumber,@Param("SignDate") String SighDate,@Param("StartTime") String StartTime,@Param("EndTime") String EndTime);

}
